function getComponent() {
    // import返回一个promise 动态引用
    return import('lodash').then(({ default: _ }) => {
        const ele = document.createElement('div')
        ele.innerHTML = _.join(['hello', 'webpack5'], ' ')
        return ele
    })
}

getComponent().then((element) => {
    document.body.appendChild(element)
})